import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface Dao {
    //根据职业查找
    List<Customer> selectByJob(@Param("jobs") String jobs);
    //动态sql
    List<Customer> selectByDynamic(Customer customer);
    //更新
    int update(Customer customer);
    //根据id批量查询
    List<Customer> selectByIds(@Param("id") List<Integer> id);
    //模糊查询
    List<Customer> selectByName(@Param("username") String username);
}
